<?php

namespace liketp\view;

class PhpNative extends BaseView
{
    protected $parser;
    protected $ext = '.html';

    public function __construct(php_native\FunctionProvider $parser)
    {
        $this->parser = $parser;
    }
    public function render(): string
    {
        $content = $this->parser->_render($this->tpl, $this->data);
        return $content;
    }
}
